package com.example.myvertx.handler;

import io.vertx.core.Handler;
import io.vertx.ext.web.RoutingContext;

public class HelloHandler implements Handler<RoutingContext> {
  /**
   * Something has happened, so handle it.
   *
   * @param ctx the event to handle
   */
  @Override
  public void handle(RoutingContext ctx) {
    ctx.response()
      .putHeader("content-type", "text/plain")
      .end("Hello from Vert.x!");
  }
}
